package Kehouzuoye;
import java.util.Scanner;
//继承
public class come extends come1{
    @Override
    public void text(int num) {
       System.out.println("第一位学生的成绩"+num);
    }
    @Override
    public void test(int num1) {
        System.out.println("第二位学生的成绩"+num1);
    }
    @Override
    public void te(int num2) {
        System.out.println("第三位学生的成绩"+num2);
    }
    @Override
    public void et(int num3) {
        System.out.println("第四位学生的成绩"+num3);
    }
    @Override
    public void rt(int num4) {
        System.out.println("第五位学生的成绩"+num4);
    }
    //测试类
    public static void main(String[] args){
        //System.out.println("输入五位同学的成绩");
        Scanner sc=new Scanner(System.in);
        //创建对象和实例化对象
        Student student=new Student();
        student.text(sc.nextInt());
        Student1 student1=new Student1();
        student1.test(sc.nextInt());
        Student2 student2=new Student2();
        student2.te(sc.nextInt());
        Student3 student3 =new Student3();
       student3.et(sc.nextInt());
       Student4 student4=new Student4();
       student4.rt(sc.nextInt());
    }
}
